﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPage.master" autoeventwireup="true" inherits="Pages_Public_CompanySearch, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/AlphabeticControl.ascx" TagName="AlphabeticControl" TagPrefix="UC" %>
<%@ Register Src="~/UserControls/CustomerList.ascx" TagName="CustomerList" TagPrefix="UC" %>
<%@ Register Src="~/UserControls/Pager.ascx" TagName="Pager" TagPrefix="UC" %>

<%@ MasterType VirtualPath="~/MasterPages/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <script language="javascript" type="text/javascript">
        function SearchCompanies() {
            var url = '<%=Request.Url.AbsolutePath %>?<%=AppConstants.QueryString.KEY %>=' + $('#<%=txtKeyword.ClientID %>').val() + '&<%=AppConstants.QueryString.PACKAGE_TYPE %>=' + $('#<%=ddlSubscriptionTypes.ClientID %>').val() + '&Rnd=' + GetRandomNumber();
            window.location = url;
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Company Search</h4>       
    <div class="GroupBox" style="margin-bottom:15px;">
        <div class="GroupHeaderOverlay">Search Options</div>
        <table cellpadding="3" cellspacing="0" style="width:100%;">
            <tr>
                <td>Keyword</td>
                <td><asp:TextBox ID="txtKeyword" runat="server" MaxLength="150"></asp:TextBox></td>
                <td>Subscription Type</td>
                <td><asp:DropDownList ID="ddlSubscriptionTypes" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="4"><input type="button" value="Search" class="ButtonCommon" onclick="SearchCompanies();"/></td>
            </tr>
        </table>
    </div>  
    
    <div style="margin-bottom:10px;">
        <UC:AlphabeticControl ID="ucAlphabeticControls" runat="server" />
    </div>

    <div id="divMessage" class="ErrorMessageBox" runat="server" visible="false"></div> 

    <UC:CustomerList ID="ucCustomerList" runat="server" IsListOfDevelopers="true" />

    <div>
        <UC:Pager ID="ucPagerBottom" runat="server" NumberOfPageLinksToDisplay="7" OnPageIndexChanged="ucPagerBottom_PageIndexChanged" />
    </div>
</asp:Content>

